﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmListUsuarios.aspx.cs" Inherits="Box.Cliente.Control.frmListUsuarios" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
 <div class="col-md-12">
     <div class="panel panel-primary">
        <div class="panel-heading">
            <h3>Listado de Usuarios</h3>
        </div>
         
        <div class="panel-body">
            <asp:GridView ID="gvUsuarios" runat="server" AutoGenerateColumns="False" 
                CellPadding="4" ForeColor="Black" GridLines="Horizontal" CssClass="table" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px">
                <Columns>
                    <asp:BoundField DataField="UserName" HeaderText="Nombre de Usuario" />
                    <asp:BoundField DataField="Email" HeaderText="Email" />
                    <asp:BoundField DataField="LastLoginDate" HeaderText="Ultima Fecha de Ingreso" />
                    <asp:BoundField DataField="IsOnline" HeaderText="Logeado" />
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="Label1" runat="server" Text="Acciones" Visible="<%# puedeEditar %>"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:LinkButton ID="lkbEditar" 
                                            runat="server" 
                                            PostBackUrl='<%# Eval("UserName", "frmAdministrarRoles.aspx?user={0}") %>' 
                                            Visible="<%# puedeEditar %>">Administrar Roles</asp:LinkButton>
                            <asp:LinkButton ID="lkbEliminar" 
                                            runat="server" 
                                            PostBackUrl='<%# Eval("UserName","frmAdministrarRoles.aspx?userelim={0}") %>' 
                                            Visible="<%# puedeEditar %>">Eliminar</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                <SortedAscendingCellStyle BackColor="#F7F7F7" />
                <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
                <SortedDescendingCellStyle BackColor="#E5E5E5" />
                <SortedDescendingHeaderStyle BackColor="#242121" />
            </asp:GridView>
        </div>
        <div></div>
    </div>
</asp:Content>
